﻿CREATE FUNCTION [dbo].GetTimesSeen(@ID INT)
RETURNS INT
AS
BEGIN
	DECLARE @param INT
	SELECT @param = COUNT(*)
	FROM [dbo].[Page]
	WHERE AuthorID = @ID
	RETURN @param
END